<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>按键修饰符</title>
</head>
<body>
    <div id="app">
        {{msg}}
        <input type="text" v-model="msg" @keyup.enter.tab="keyups" />
        <input type="text" v-model="msg" @keyup.tab="keytab" />
    </div>
</body>
</html>
<script src="./js/2.7.14_dist_vue.js"></script>
<script>
    new Vue({
        el:"#app",
        data:{
            msg:"按键修饰符",
        },
        methods: {
            keyups(){
                alert(this.msg)
            },
            keytab(){
                alert("tab触发")
            },
        },
        computed:{

        },
    })
</script>